package com.zhuiyun.pm.sys.user.service;

import com.zhuiyun.pm.page.PageRequest;
import com.zhuiyun.pm.result.CommonResult;
import com.zhuiyun.pm.sys.user.entity.SysUserEntity;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartRequest;

public interface SysUserService {

    /**
     * @Description 查询用户的账号及密码
     * @Author zkc
     * @Date 2023年3月14日14:06:23
     * @Return com.zhuiyun.pm.result.CommonResult
     */
    SysUserEntity queryUserForLogin(String loginName, String password);

    /**
    * @Description 分页获取后台用户管理信息列表
    * @Author lzy
    * @Date 2023/3/14 18:43
    * @Return com.zhuiyun.pm.result.CommonResult
    * @param pageRequest
    * @param loginName
    * @param nickName
    */
    CommonResult getSysUserListAll(PageRequest pageRequest, String loginName, String nickName);

    /**
    * @Description 根据id删除用户信息
    * @Author lzy
    * @Date 2023/3/14 19:12
    * @Return com.zhuiyun.pm.result.CommonResult
    * @param id
    */
    CommonResult deleteSysUserById(Integer id);

    /**
    * @Description 新增用户信息
    * @Author lzy
    * @Date 2023/3/14 19:15
    * @Return com.zhuiyun.pm.result.CommonResult
    * @param multipartRequest
    * @param sysUserEntity
    */
    CommonResult saveSysUser(MultipartRequest multipartRequest, SysUserEntity sysUserEntity);

    /**
    * @Description 校验登录名称是否已存在
    * @Author lzy
    * @Date 2023/3/14 20:28
    * @Return com.zhuiyun.pm.result.CommonResult
    * @param loginName
    */
    CommonResult checkLoginName(String loginName);
}
